package comunication;

import jade.core.Agent;

import java.util.Date;

public class Offer extends Message{
	
	protected Order order;
	protected Price price;
	protected Date endDate;
	protected String description;
	
	public Offer(Agent agent, Order order) {
		super(agent, order.getID(), MessageType.OFFER);
		this.order = order;
	}
	
	public void setOrder(Order order) {
		this.order = order;
	}
	
	public Order getOrder() {
		return order;
	}
	
	public Price getPrice() {
		return price;
	}
	
	public Date getEndDate() {
		return endDate;
	}
	
	public void setPrice(Price price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	
	
}
